package com.hongxun.budget.ui;

import android.app.Application;
import android.content.Context;
import android.support.multidex.MultiDex;

import com.hongxun.budget.utils.AppInit;

import org.greenrobot.greendao.query.QueryBuilder;


/**
 * Created by admin on 2018/5/14.
 */

public class MyApplication extends Application {

    private static MyApplication application;
    
    @Override
    public void onCreate() {
        super.onCreate();
        QueryBuilder.LOG_SQL = true;
        QueryBuilder.LOG_VALUES = true;
        AppInit.getInstance(this);
        application=this;
    }

    @Override
    protected void attachBaseContext(Context base) {
        super.attachBaseContext(base);
        MultiDex.install(this);
    }

    public static MyApplication getInstances(){
        return application;
    }
}
